<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$meta_title}</title>
  
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="">
  <link rel="apple-touch-icon-precomposed" href="">
  <meta name="apple-mobile-web-app-title" content="{$meta_title}" />
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/admin.css">
   <script type="text/javascript" src="__PUBLIC__/libs/dingding/javascripts/zepto.min.js"></script>
 <script type="text/javascript" src="https://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js"></script>
</head>
<body>

<div class="am-cf admin-main">
<!-- content start -->
<div class="admin-content">
  <div class="admin-content-body">
      
  <div class="am-panel am-panel-default">
            <div class="am-panel-bd am-collapse am-in" id="collapse-panel-1">
              <ul class="am-list admin-content-file">
                
               
				<li>
                  <strong><span ></span> 服务器名称</strong>
                  <p>{$val.server_name}</p>
                </li>
                <li>
                  <strong><span ></span> 客户</strong>
                  <p>{$val.customer_id}</p>
                </li>
                <li>
                  <strong><span ></span> 开始时间</strong>
                  <p>{$val.s_time}</p>
                </li>
                <li>
                  <strong><span ></span> 到期时间</strong>
                  <p>{$val.e_time}</p>
                </li>
                <li>
                  <strong><span ></span> 服务器IP</strong>
                  <p>{$val.ip}</p>
                </li>
                <li>
                  <strong><span ></span> 管理账号</strong>
                  <p>{$val.account}</p>
                </li>
                <li>
                  <strong><span ></span> 操作系统</strong>
                  <p>{$val.system}</p>
                </li>
                <li>
                  <strong><span ></span> 供应商</strong>
                  <p>{$val.supplier}</p>
                </li>
                <li>
                  <strong><span ></span> 位置</strong>
                  <p>{$val.place}</p>
                </li>
                 <li>
                  <strong><span ></span> 续费价格</strong>
                  <p>{$val.price}</p>
                </li>
                 <li>
                  <strong><span ></span> 市场价格</strong>
                  <p>{$val.yprice}</p>
                </li>
                 <li>
                  <strong><span ></span> 配置信息</strong>
                  <p>{$val.info}</p>
                </li>
                 <li>
                  <strong><span ></span> 备注</strong>
                  <p>{$val.remark}</p>
                </li>
                
                <!--  <li>
                  <strong><span ></span> 操作</strong>
                   <p style=" text-align: center; ">
	                  	<a href="javascript:;" onclick="del_server({$val['id']});"><span class="am-badge font-size am-badge-danger">删除</span></a>
					</p>
                </li> -->
                
                
              </ul>
            </div>
          </div>

  <div style="height:80px;"></div> 
	</div>
</div>
<!-- content end -->
</div>
<script type="text/javascript" >
dd.ready(function() {
	//下拉刷新
	dd.ui.pullToRefresh.enable({
	    onSuccess: function() {
	    	window.location.reload();
	    	dd.ui.pullToRefresh.stop();
	    },
	    onFail: function() {
	    	
	    }
	});
		//右侧
		var id={$val.id};
		dd.biz.navigation.setRight({
		    show: true,//控制按钮显示， true 显示， false 隐藏， 默认true
		    control: true,//是否控制点击事件，true 控制，false 不控制， 默认false
		    text: '编辑',//控制显示文本，空字符串表示显示默认文本
		    onSuccess : function(result) {
		    	window.location.href='/Wap/Server/editserver/id/'+id;
		        //如果control为true，则onSuccess将在发生按钮点击事件被回调
		        /*
		        {}
		        */
		    },
		    onFail : function(err) {}
		});

}); 

 //删除
 function del_server(id){
	 dd.device.notification.confirm({
		    message: "您确定删除此信息吗？",
		    title: "操作提示",
		    buttonLabels: ['确定', '取消'],
		    onSuccess : function(result) {
		        /*
		        {
		            buttonIndex: 0 //被点击按钮的索引值，Number类型，从0开始
		        }
		        */
		        if(result.buttonIndex==0){
		        	var params = {};
					params.id=id;
					var url="{:U('Wap/Server/delServerAjax')}";
					$.post(url,params,function(data) {
						if(data.info==1){
							dd.device.notification.toast({
							    type: "success", //toast的类型 alert, success, error, warning, information, confirm
							    text: '删除成功！', //提示信息
							    duration: 3, //显示持续时间，单位秒，最短2秒，最长5秒
							    delay: 0, //延迟显示，单位秒，默认0, 最大限制为10
							    onSuccess : function(result) {
							        /*{}*/
							    },
							    onFail : function(err) {}
							})
							
							window.location.href='/Wap/Server/index';
						}else{
							dd.device.notification.toast({
							    type: "error", //toast的类型 alert, success, error, warning, information, confirm
							    text: '删除失败！', //提示信息
							    duration: 3, //显示持续时间，单位秒，最短2秒，最长5秒
							    delay: 0, //延迟显示，单位秒，默认0, 最大限制为10
							    onSuccess : function(result) {
							        /*{}*/
							    },
							    onFail : function(err) {}
							})
						}
							
						
					});
		        }
		    	
		    },
		    onFail : function(err) {}
		});
	 	
 }

 
</script>
<!-- footnav start --> 
<style>
.footnav{ position: fixed;  bottom: 0;    width: 100% ; background: #fff; z-index:999999}
.footnav ul{ padding:5px 0; border-top:1px solid #ccc}
.footnav ul li{ width:20%; float:left;list-style-type: none;}
.footnav ul li a{ display:block; text-align:center; font-size:12px;    color: #767171;}
.footnav ul li a span{ font-size:24px;line-height: 20px;}
.active a {color:#0e90d2 !important;}

</style>
<div class=" footnav">
    <ul>
    <li > <a  href="/Wap/Index/shouye" ><span class="am-icon-home"></span>首页 </a> </li>
     <li ><a href="/Wap/Task/mytask"><span class="am-icon-file-text"></span>任务</a></li>
      <li class="active"><a href="/Wap/Server/index"><span class="am-icon-recycle"></span> 服务器</a></li>
      <li ><a href="/Wap/Customer/index"><span class="am-icon-user-md"></span>客户</a></li> 
      <li ><a href="/Wap/Project/index"><span class="am-icon-briefcase"></span>项目</a></li>
    </ul>
    
</div>
<!-- footnav end -->
<script src="__ROOT__/Application/Home/View/default/assets/js/jquery.min.js"></script>

<script src="__ROOT__/Application/Home/View/default/assets/js/amazeui.min.js"></script>
<script src="__ROOT__/Application/Home/View/default/assets/js/app.js"></script>
</body>
</html>
